<div id="kim_page">
    <div class="post">
        <h2>KIM</h2>
        <div class="entry">
            <?php if (isset($errors)) {
            ?>
                <div class="error">
                    Error occurred. Try again later.
                </div>
            <?php } else {
            ?>
                <script type="text/javascript">
                    function edit(){
                        $("#kim_page").load("<?= base_url(); ?>index.php?/admin_settings/kimEdit/");
                    }
                </script>
            <?php if ($this->session->userdata("admin")) {
            ?>
                    <input type="button" value="Edit" onclick="edit()" />
            <?php } ?>
                <table style="border:5px;border-style:solid;">
                    <tr class="darker">
                        <th>
                            Vision
                        </th>
                        <td>
                        <?= $vision; ?>
                    </td>
                </tr>
                <tr class="lighter">
                    <th>
                        Mission
                    </th>
                    <td>
                        <?= $mision; ?>
                    </td>
                </tr>
                <tr class="darker">
                    <th>
                        Core values
                    </th>
                    <td>
                        <?= $core_values; ?>
                    </td>
                </tr>
                <tr class="lighter">
                    <th>
                        KIM Council
                    </th>
                    <td>
                        <?= $kim_council; ?>
                    </td>
                </tr>
                <tr class="lighter">
                    <th>
                        Branch Committees
                    </th>
                    <td>
                        <?= $kim_comitees; ?>
                    </td>
                </tr>
                <tr class="darker">
                    <th>
                        Board of fellows
                    </th>
                    <td>
                        <?= $board_of_fellows; ?>
                    </td>
                </tr>

                <tr class="darker">
                    <th>
                        Senior Management
                    </th>
                    <td>
                        <a href='<?= $membership_system; ?>'><?= $membership_system; ?></a>
                    </td>
                </tr>

                <?php
                        if ($this->session->userdata("admin")) {
                ?>
                            <tr class="lighter">
                                <th>
                                    Last editted
                                </th>
                                <td>
                        <?= $last_editted; ?>
                        </td>
                    </tr>
                    <tr class="darker">
                        <th>
                            Editted by
                        </th>
                        <td>
                        <?= $editted_by; ?>
                        </td>
                    </tr>
                <?php
                        }
                ?>
                    </table>
                </div>
        <?php } ?>
    </div>
</div>